<?php
declare (strict_types=1);

namespace app\common\model;

use think\Model;

//区域字典数据表
class RegionListModel extends Model
{
    protected $table = 'utf8mb4_region_list';

    public $rule = [
        'region_code' => 'require|max:20',
        'region_name' => 'require|max:20',
        'pid' => 'require',
        'px' => 'require',
    ];
    public $message = [
        'region_code.require' => '区域编码不能为空',
        'region_code.max' => '区域编码最长20个字符',
        'region_name.require' => '区域名称不能为空',
        'region_name.max' => '区域名称最长20个字符',
        'pid.require' => '父区域不能为空',
        'px.require' => '请填写排序好',
    ];

}